package com.csnf.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StorageMapper {
    //减库存
    @Update("update tb_storage set count = count - #{count} where product_code = #{productCode}")
    public int reduceStorage(String productCode,Integer count);
}
